package io.gitee.zicai.redisson.rpc.sample.provider.service;

import io.gitee.zicai.redisson.rpc.annotation.RedissonRpcService;
import io.gitee.zicai.redisson.rpc.sample.api.IRpcDemoService;
import lombok.extern.slf4j.Slf4j;

/**
 * RpcDemoService
 *
 * @author zicai
 * @since 2021-03-26
 */
@Slf4j
@RedissonRpcService(interfaceClass = IRpcDemoService.class)
public class RpcDemoService implements IRpcDemoService {

    @Override
    public String hello(String msg) {
        log.info(">>> call hello() from remote -> {}", msg);
        return "RpcDemoService-" + msg;
    }
}
